//
//  HaokaMiddleCell.m
//  BMProject
//
//  Created by chris on 16/1/2.
//  Copyright © 2016年 BMProject. All rights reserved.
//

#import "HaokaMiddleCell.h"
#import "DataModel.h"

@implementation HaokaMiddleCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
    if (selected) {
        DLog([NSString stringWithFormat:@"选中了:%i", _indexPath.row]);
        _checkBtn.selected = YES;
    } else {
        DLog([NSString stringWithFormat:@"取消选中了:%i", _indexPath.row]);
        _checkBtn.selected = NO;
    }
}

- (void)setCellInfo:(OrderDealDetailPoolList *)info {
    self.selectionStyle = UITableViewCellSelectionStyleGray;
    if (info) {
        _phoneNumLa.text = info.mobile;
    }
    if( _isCancleImage) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [_checkBtn setImage:nil forState:UIControlStateSelected];
        [_checkBtn setImage:nil forState:UIControlStateNormal];
    }
}

- (void)setCellInfo2:(TelModel *)info {
    self.selectionStyle = UITableViewCellSelectionStyleGray;
    if (info) {
        _phoneNumLa.text = info.mobile;
    }
    if( _isCancleImage) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [_checkBtn setImage:nil forState:UIControlStateSelected];
        [_checkBtn setImage:nil forState:UIControlStateNormal];
    }
}

@end
